// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import FastClick from 'fastclick'
import router from './router/index'
import store from './vuex/index'
import App from './App'
import getData from './config/get_data'
import { AjaxPlugin, AlertPlugin, LoadingPlugin, ToastPlugin, base64 } from 'vux'
import rem from './config/rem'
import '../static/css/reset.css'

Vue.use(AjaxPlugin)
Vue.use(LoadingPlugin)
Vue.use(ToastPlugin)
Vue.use(AlertPlugin)

//全局请求超时
Vue.http.defaults.timeout = 10000
//获取数据全局方法
Vue.prototype.$getData = getData
Vue.prototype.$base64 = base64
//移动端无延迟点击
FastClick.attach(document.body)
//关闭生产提示
Vue.config.productionTip = false
Vue.prototype.$title = "南京一号"
/* eslint-disable no-new */
new Vue({
	el: '#app',
	router,
	store,
	render: h => h(App)
})
